﻿#if UIEX
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public class UILine : UIPoolObject<UILineRenderer>
{
    virtual public float CurrentLine
    {
        get
        {
            return render.Points[1].x;
        }
        set
        {
            render.Points[1].x = value;
            render.SetVerticesDirty();
        }
    }



    public void LineTop()
    {
        render.Points[0].x = 1;
        render.Points[1].x = 1;
    }

    public void LineBottom()
    {
        render.Points[0].x = 0;
        render.Points[1].x = 0;
    }


}

#endif